<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:c="http://java.sun.com/jstl/core"
      xmlns:p="http://primefaces.prime.com.tr/ui">
    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<link href="#{facesContext.externalContext.requestContextPath}/resources/css/estilo.css" rel="stylesheet" type="text/css"/>
        <title>Rumos - ERP</title>
    </h:head>
    <h:body>
        <div id="tudo">
        
	        	<div id="topo">
			    	<ui:insert name="topo">
			    		<div style="margin-left:50px;">
				    		<ul id="menu">
					            <li class="logo">
					            	<h:link outcome="/indice.faces">
						    			<h:graphicImage value="#{resource['img:rumus.png']}" alt="" style="float:left; border: 0px;"/>
						    		</h:link>
					            </li>
					            <li>
					            	<a href="/rumus/j_spring_security_logout">Sair</a>      					
					            </li>
					            <li class="searchContainer">
					            	<h:form id="form" >
					            	<div>		
					                	<h:inputText id="searchField" value="#{sessao.palavra}"/>
					                	<h:commandLink id="busca" action="#{sessao.busca}">
					                		<h:graphicImage value="#{resource['img:magnifier.png']}"/>
					                	</h:commandLink></div>
					                </h:form>
					            </li>
					         </ul>
					         <img style="float:left;" alt="" src="#{resource['img:menu_right.png']}"/>    
			    		 </div>
			    		
			    		<ui:repeat value="#{sessao.acoes}" var="acao">
							<p:hotkey bind="#{acao.atalho}" handler="window.location='#{acao.url}';"/>
						</ui:repeat>
						
			    	</ui:insert>
		    	</div>
		    	
	    		<br/><br/><br/><br/><br/>
	    		<div id="conteudo">
	    			<p:messages/>
	    			<h1><ui:insert name="titulo"/></h1>	    			
			    	<ui:insert name="conteudo">
			    		Conteúdo Página Padrão
			    	</ui:insert>
	    		</div>
	    		<div id="conteudo">
			    	<ui:insert name="rodape">
			    		<center>© 2011. Todos os direitos reservados</center>
			    	</ui:insert>
	    		</div>
    	</div>	
    </h:body>
</html>